package net.frankish.tools.toolbar2;

import java.awt.event.ActionEvent;
import java.net.URL;

import javax.swing.AbstractAction;
import javax.swing.ImageIcon;

public abstract class SelectAction extends AbstractAction {
	private static final long serialVersionUID = 1L;
	public static final String LARGE_ICON = "LargeIcon";
	public static final String TOOLTIP = "ToolTip";

	private  String view;
	public SelectAction(String name, URL icon, String toolTip, String view) {
		super(name);
		this.view = view;
		if (icon != null)
			putValue(LARGE_ICON, new ImageIcon(icon));
		if (toolTip != null)
			putValue(TOOLTIP, toolTip);
	}

	public abstract void actionPerformed(ActionEvent event);
}
